package com.qf.personal.controller;

import com.qf.common.base.result.RespResult;
import com.qf.personal.entiy.Vo.EmpVo;
import com.qf.personal.service.IndexService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@Api(tags = "我的申请")
@RestController
@RequestMapping("/my/index")
public class IndexController {
    @Resource
    private IndexService indexService;

    @GetMapping("/select/user")
    @ApiOperation("查询用户")
    @ApiResponses({@ApiResponse(code = 200, message = "成功")})
    public RespResult<EmpVo> selectOne(int id) {
        return indexService.selectById(id);
    }

}
